# Initialization

addi	$s0, $zero, 6		# First Operand
addi	$s1, $zero, 8		# Second Operand
lw	$s0, 0($a0)			# $s0 = operand #1
salto1:
beq	$s1, $s1, salto2 
salto2:
addi	$a0, $zero, 0		# $a0 = 0
addi	$a1, $a0, 4			# $a1 = 4
beq $s1, $s2, salto5
jodido3:
add	$s2, $s2, $s1	
beq	$s1, $s2, salto2
salto4:
addi	$s1, $s2, 1		    # $s2 = $s2 + $s1
nop
salto5:
beq	$s2, $s3, salto1
add	$s3, $s1, $s2		# $s2 = $s2 + $s1
